package org.zoomdev.zoom;

import org.zoomdev.zoom.security.Sensitive;
import org.zoomdev.zoom.security.SensitiveUtils;

public class SensitiveRules {

    public static final int NAME = 0;
    public static final int ID_CARD = 1;
    public static final int BANK_CARD = 2;

    public static final Sensitive<String>[] sensitives = new Sensitive[]{
            new Sensitive<String>() {
                @Override
                public String toSensitiveString(String data) {
                    return SensitiveUtils.chineseName(data);
                }
            },
            new Sensitive<String>() {
                @Override
                public String toSensitiveString(String data) {
                    return SensitiveUtils.idCard(data);
                }
            },
            new Sensitive<String>() {
                @Override
                public String toSensitiveString(String data) {
                    return SensitiveUtils.bankCard(data);
                }
            },
    };
}
